myChart.hideLoading();
myChart.setOption(option = {
    tooltip: {
        trigger: 'item',
        triggerOn: 'mousemove'
    },
    legend: {
        top: '2%',
        left: '3%',
        orient: 'vertical',
        data: [{
            name: '用户关系',
            icon: 'rectangle'
        }],
        borderColor: '#c23531'
    },
    series: [{
        type: 'tree',
        name: '用户关系',
        data: [data2],
        top: '5%',
        left: '5%',
        bottom: '5%',
        right: '5%',
        symbolSize: 7,

        label: {
            normal: {
                position: 'left',
                verticalAlign: 'middle',
                align: 'right'
            }
        },
        leaves: {
            label: {
                normal: {
                    position: 'right',
                    verticalAlign: 'middle',
                    align: 'left'
                }
            }
        },
        expandAndCollapse: true,
        animationDuration: 550,
        animationDurationUpdate: 750
    }]
});
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}